﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Admin.ascx.cs" Inherits="PASNew.UserControls.V2.Admin" %>
<article class="grid_18 box-shadow1">
<div class="box">
<div class="padding">
<h3>Admin </h3>
<div class="wrapper img-indent-bot">
<article>

<div id="clientdetails_nav">
<ul>
<li>
<asp:Button ID="btnNew" runat="server" Text="New" CausesValidation="False" 
ToolTip="Click here to add client" CssClass="button" onclick="btnNew_Click" />
</li>
<li>
<asp:Button ID="btnSave" runat="server" Text="Save"  ToolTip="Click here to save client"
CssClass="button" onclick="btnSave_Click" />
</li>
<li>
<asp:Button ID="btnDelete" runat="server" Text="Delete" 
ToolTip="Click here to delete client" CssClass="button" 
        onclick="btnDelete_Click" />
</li>
</ul>
   
<asp:DropDownList ID="DDClientLoad" runat="server" CssClass="dropdown" AutoPostBack="True"
AppendDataBoundItems="true">
<asp:ListItem Text="Please select client ---" Value="-1"></asp:ListItem>
</asp:DropDownList>


<asp:Label ID="lblSuccess" runat="server" Text="Label" ForeColor="Black" Visible="False" CssClass="fright"></asp:Label>
</div>  
   
  
<div id="container">
<ul class="menu">
<li id="news" class="active">User Details</li>
<li id="tutorials">Sales Information</li>
</ul>
<span class="clear"></span>

<div class="content news">
    <div class="contentLeft">
        <p>
            <asp:Label ID="lblUserName" runat="server" Text="User Name" AssociatedControlID="txtBoxUserName"></asp:Label><br />
            <asp:TextBox ID="txtBoxUserName" runat="server" CssClass="textbox"></asp:TextBox><br />
            <asp:RequiredFieldValidator runat="server" ID="UserNameCheck" ErrorMessage="Please input users name" ControlToValidate="txtBoxUserName" ForeColor="White"></asp:RequiredFieldValidator>
        </p>
        <p>
            <asp:Label ID="lblUserEmail" runat="server" Text="User Email" AssociatedControlID="txtBoxUserEmail"></asp:Label><br />
            <asp:TextBox ID="txtBoxUserEmail" runat="server" CssClass="textbox"></asp:TextBox><br />
            <asp:RegularExpressionValidator ID="emailFormatCheck" runat="server" ErrorMessage="Please input a valid email" ForeColor="Black" ControlToValidate="txtBoxUserEmail" Width="180px" Display="Dynamic" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            <asp:RequiredFieldValidator runat="server" ID="UserEmailCheck" ErrorMessage="Please input users email" ControlToValidate="txtBoxUserEmail" ForeColor="Black" Display="Dynamic"></asp:RequiredFieldValidator>
        </p>
        <p>
            <asp:Label ID="lblPassword" runat="server" Text="Password" AssociatedControlID="txtBoxPassword"></asp:Label><br />
            <asp:TextBox ID="txtBoxPassword" runat="server" CssClass="textbox"></asp:TextBox><br />
            <asp:RequiredFieldValidator runat="server" ID="UserPassowrdCheck" ErrorMessage="Please input users password" ControlToValidate="txtBoxPassword" ForeColor="Black" Display="Dynamic"></asp:RequiredFieldValidator>
        </p>
        <p>
            <asp:Label ID="lblALevel" runat="server" Text="Access Level" Visible="False"></asp:Label><br />
            <asp:TextBox ID="txtBoxUserALevel" runat="server" CssClass="textbox" Visible="False"></asp:TextBox><br />
            <asp:RangeValidator ID="RVALevel" runat="server" ErrorMessage="Select 3(Manager) or 4(Sales Person)" ControlToValidate="txtBoxUserALevel" ForeColor="Black" MaximumValue="4" MinimumValue="3" Display="Dynamic"></asp:RangeValidator>
        </p>
    </div>
<div class="contentRight">
<p>Insert, update and delete users, aswell as view the perfomance of each of your sales people</p>
</div>

<div class="clear">
</div>
</div>

<div class="content tutorials">

</div>
</div>
</article>
</div>
</div>
</div>
</article>
